<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
    <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
    <!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
    <!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
    <!--[if gt IE 8]><!--> 
<html lang="en-US"> <!--<![endif]-->
    <head>
        <!-- META TAGS -->
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>Knowledge Base Theme</title>

        <link rel="shortcut icon" href="/gz31/wenda/Public/h/images/favicon.png" />

        <!-- Style Sheet-->
        <link rel="stylesheet" href="/gz31/wenda/Public/h/style.css"/>
        <link rel='stylesheet' id='bootstrap-css-css'  href='/gz31/wenda/Public/h/css/bootstrap5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='responsive-css-css'  href='/gz31/wenda/Public/h/css/responsive5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='pretty-photo-css-css'  href='/gz31/wenda/Public/h/js/prettyphoto/prettyPhotoaeb9.css?ver=3.1.4' type='text/css' media='all' />
        <link rel='stylesheet' id='main-css-css'  href='/gz31/wenda/Public/h/css/main5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='custom-css-css'  href='/gz31/wenda/Public/h/css/custom5152.html?ver=1.0' type='text/css' media='all' />

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="/gz31/wenda/Public/h/js/html5.js"></script></script>
        <![endif]-->
    </head>

    <body>

        <!-- Start of Header -->
            <!-- 头部 Start of Header -->
        <div class="header-wrapper">
            <header>
                <div class="container">


                    <div class="logo-container">
                        <!-- Website Logo -->
                        <a href="<?php echo U('Index/index');?>"  title="Knowledge Base Theme">
                                <img src="/gz31/wenda/Public/h/images/logo.png" alt="Knowledge Base Theme">
                        </a>
                        <span class="tag-line">ToZero 从零开始</span>
                    </div>


                    <!-- 导航栏开始 Start of Main Navigation -->
                    <nav class="main-nav">
                        <div class="menu-top-menu-container">
                            <ul id="menu-top-menu" class="clearfix">
                                <li class="current-menu-item"><a href="<?php echo U('Index/index');?>">首页</a></li>
                                <li><a href="#" onclick="alert('There is nothing!')">最新公告</a></li>
                                <li><a href="#">分类</a>
                                    <ul class="sub-menu">
                                    <?php if(is_array($cats)): foreach($cats as $key=>$cat): ?><li><a href='<?php echo U("Ask/cat_ask", ["cid"=>$cat["id"]]);?>'><?php echo ($cat["name"]); ?></a></li><?php endforeach; endif; ?>
                                    </ul>
                                </li>

                                <li><a href="#" onclick="alert('There is nothing!')">联系我</a></li>
                                <li><a href="#">个人中心</a>
                                    <ul class="sub-menu">
                                        <?php if($webuserinfo == null): ?><li><a href="<?php echo U('Login/login');?>">登入</a></li>
                                            <li><a href="<?php echo U('Register/register');?>">注册</a></li>
                                        <?php else: ?>    
                                            <li><a href="<?php echo U('User/center');?>">欢迎：<font color="yellow"><?php echo ($webuserinfo); ?></font></a></li>
                                            <li><a href="<?php echo U('Question/add');?>">我要提问</a></li>
                                            <li><a href="<?php echo U('Login/logout');?>">安全退出</a></li><?php endif; ?>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </nav>
                    <!-- 导航栏结束 End of Main Navigation -->

                </div>
            </header>
        </div>
        <!-- 头部结束 End of Header -->


		<div class="search-area-wrapper">
            <div class="search-area container">
                <!-- <h3 class="search-header">Have a Question?</h3>
                <p class="search-tag-line">If you have any question you can ask below or enter what you are looking for!</p> -->

                <form id="search-form" class="search-form clearfix" method="get" action="#" autocomplete="off">
                    <input class="search-term required" type="text" id="s" name="s" placeholder="请输入搜索的内容" title="* Please enter a search term!" />
                    <input class="search-btn" type="submit" value="Search" />
                    <div id="search-error-container">jquery.liveSearch.js触发搜索时间</div>
                </form>
            </div>
        </div>
        <!-- End of Header -->
        <div class="page-container">
            <div class="container">
                <div class="row">

                    <!-- 问题列表 页面左侧内容-->
                    <div class="span8 page-content">
                        <article class="type-page hentry clearfix">
                            <h1 class="post-title">
                                <a href="#">您的问题？</a>
                            </h1>
                            <hr>
                            <p>您所填的信息越完整，可以提高他人为你解决问题的速度和难度！</p>
                        </article>
                        <!-- 
                            所属类别 cid
                            作者：   uid
                            问题标题：title
                            问题详细内容：如报错，切图等等； content
                            发布时间：public_time
                            最近更新时间：last_time

                         -->

                        <form id="contact-form" class="row" action="<?php echo U('Question/doAdd');?>" method="post">

                            <div class="span2">
                                    <label for="cid">问题分类： <span>(必填)</span> </label>
                            </div>
                            <div class="span6">
                                    <select name="cid" id="cid"  class="required input-xlarge">
                                        <?php if(is_array($cats)): foreach($cats as $key=>$v): ?><option value="<?php echo ($v['id']); ?>"><?php echo ($v['name']); ?></option><?php endforeach; endif; ?>
                                    </select>
                                    <!-- <input type="text" name="name" id="name" class="required input-xlarge" value="" title="* Please provide your name"> -->
                            </div>

                            <div class="span2">
                                    <label for="title">标题： <span>(必填)</span></label>
                            </div>
                            <div class="span6">
                                    <input type="text" name="title" id="title" class="title required input-xlarge" value="" title="* 对问题的简单描述">
                            </div>

                            <div class="span2">
                                    <label for="editor_singcms">详情： <span>(选填)</span> </label>
                            </div>
                            <div class="span5">
                                <textarea class="input js-editor" id="editor_singcms" name="content" rows="20" ></textarea>
                            </div>

                            <div class="span2">
                                    <label for="editor_singcms"> <span>*</span> </label>
                            </div>
                            <div class="span6 offset2 bm30">
                                   <button id="add-submit" class="btn btn-inverse" type="button">提交</button>
                                    <img src="/gz31/wenda/Public/h/images/loading.gif" id="contact-loader" alt="Loading...">
                            </div>

                        </form>
                    </div>
                <!-- end of page content -->


                    <!-- 页面右侧内容 开始 -->
                    <aside class="span3 page-sidebar">

                            <section class="widget">
                                <div class="support-widget">
                                        <h3 class="title">Support</h3>
                                        <p class="intro">Need more support? If you did not found an answer, contact us for further help.</p>
                                </div>
                            </section>
                    </aside>
                    <!-- end of sidebar -->
                </div>
            </div>
        </div>
        <!-- End of Page Container -->

        <!-- Start of Footer -->
               <!-- 底部 Start of Footer -->
        <footer id="footer-wrapper">
            <div id="footer" class="container">
                <div class="row">

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">How it works</h3>
                            <div class="textwidget">
                                <p>每个人在自己擅长的地方，都是可以成为其他人的导师</p>
                                <p>有些事情，如果你坚持下去，并且走到走后，你会发现自己还是有很多优点可以被发现，有一句话说的好“不努力，你不知道自己有多牛逼！”</p>
                            </div>
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget"><h3 class="title">FAQS分类</h3>
                        <!-- 这里应该链接到一些单页面去， 但这样又好像类似于公告 -->
                            <ul>
                                <li><a href="#" title="Lorem ipsum dolor sit amet,">PHP </a> </li>
                                <li><a href="#" title="Lorem ipsum dolor sit amet,">MySQL</a></li>
                            </ul>
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">最近的公告</h3>
                            <div id="twitter_update_list">
                                <ul>
                                    <li>没有公告 !</li>
                                </ul>
                            </div>
                               
                        </section>
                    </div>

                    <div class="span3">
                        <section class="widget">
                            <h3 class="title">纪念照</h3>
                            <div >
                            </div>
                        </section>
                    </div>

                </div>
            </div>
            <!-- end of #footer -->

            <!-- Footer Bottom -->
            <div id="footer-bottom-wrapper">
                <div id="footer-bottom" class="container">
                    <div class="row">
                        <div class="span6">
                            <p class="copyright">
                                Copyright © 2013. All Rights Reserved by ToZero.Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
                            </p>
                        </div>
                        <div class="span6">
                            <!-- Social Navigation -->
                            <ul class="social-nav clearfix">
                                <li class="linkedin"><a target="_blank" href="#"></a></li>
                                <li class="stumble"><a target="_blank" href="#"></a></li>
                                <li class="google"><a target="_blank" href="#"></a></li>
                                <li class="deviantart"><a target="_blank" href="#"></a></li>
                                <li class="flickr"><a target="_blank" href="#"></a></li>
                                <li class="skype"><a target="_blank" href="skype:#?call"></a></li>
                                <li class="rss"><a target="_blank" href="#"></a></li>
                                <li class="twitter"><a target="_blank" href="#"></a></li>
                                <li class="facebook"><a target="_blank" href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End of Footer Bottom -->

        </footer>
        <!-- End of Footer -->

        <a href="#top" id="scroll-top"></a>

		<!-- common script -->
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery-1.8.3.min.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.easing.1.3.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/prettyphoto/jquery.prettyPhoto.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jflickrfeed.js'></script>
		<script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.liveSearch.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.form.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.validate.min.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/custom.js'></script>
        

        <!-- End of Footer -->

        

        <!-- script -->
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery-1.8.3.min.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.easing.1.34e44.js?ver=1.3'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/prettyphoto/jquery.prettyPhotoaeb9.js?ver=3.1.4'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.liveSearchd5f7.js?ver=2.0'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jflickrfeed.js'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.formd471.js?ver=3.18'></script>
        <!-- <script type='text/javascript' src='/gz31/wenda/Public/h/js/jquery.validate.minfc6b.js?ver=1.10.0'></script>
        <script type='text/javascript' src='/gz31/wenda/Public/h/js/custom5152.js?ver=1.0'></script> -->
        
        <!-- this page js -->
        <script type="text/javascript" src="/gz31/wenda/Public/dialog/layer/layer.js"></script>
        <script type="text/javascript" src="/gz31/wenda/Public/dialog/dialog.js"></script>
        <script type="text/javascript" src="/gz31/wenda/Public/common/common.js"></script>
        <script type="text/javascript" src="/gz31/wenda/Public/kindeditor/kindeditor-all-min.js"></script>
    <script>

        var SCOPE = {
            "add_url" : "<?php echo U('Question/doAdd');?>",
            "success_url" : "<?php echo U('Index/index');?>",
        };
        KindEditor.ready(function(K) {
            window.editor = K.create('#editor_singcms',{
                  uploadJson : "<?php echo U('Image/kindupload');?>", // 上传图片的接口，接收上传图，返回地址
                  afterBlur : function(){this.sync();}, //
            });
        });
    </script>
    </body>
</html>